<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>商家POS机管理维护管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>

	<form:form id="searchForm" modelAttribute="fieldCustomerPos" action="${ctx}/field/fieldCustomerPos/list" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<input id="office" name="office.id" type="hidden" value="${fieldCustomerPos.office.id}"/>
		<ul class="ul-form">
			<li><label>商家：</label>
					<sys:treeselect id="customerCode" name="customerCode.code" value="${fieldCustomerPos.customerCode.code}" labelName="customerCode.name" labelValue="${fieldCustomerPos.customerCode.name}"
						title="商家" url="/field/fieldCustomer/treeData" cssClass="input-small"   allowClear="true" notAllowSelectParent="true"/>
			</li>
			<li><label>外勤：</label>
					<sys:treeselect id="manageUser" name="manageUser.id" value="${fieldCustomerPos.manageUser.id}" labelName="manageUser.name" labelValue="${fieldCustomerPos.manageUser.name}"
					title="外勤" url="/sys/office/treeData?type=3"  cssClass="input-small" allowClear="true" notAllowSelectParent="true"/>
			</li>
			<li><label style='white-space:nowrap'>工行资源编码：</label>
					<form:input path="brcode" htmlEscape="false"  maxlength="20" class="input-medium "/>
			</li>
			
			<li><label>软件版本号：</label>
					<form:select path="version" class="input-medium" cssStyle="">
						<form:option value="" label=""/>
						<form:options items="${fns:getDictList('field_version')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
					</form:select>
			</li>
			<li><label>地址：</label>
					<sys:treeselect id="area" name="area.id" value="${fieldCustomerPos.area.id}" labelName="area.name" labelValue="${fieldCustomerPos.area.name}"
						title="地址" url="/sys/area/treeData" cssClass="input-small" allowClear="true" notAllowSelectParent="true"/>
			</li>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>商家</th>
				<th>外勤</th>
				<th>工行资源编码</th> 
				<th>自定义编码</th>
				<th>机器编码</th> 
				<th>S\N码</th>
				<th>软件版本号</th> 
				<th>签约汇率</th> 
				<th>机型</th>
				<th>机器来源</th>
				<%--
				<th>支行经理</th>
				<th>支行经理联系电话</th>
				<th>押金</th> 
				<th>收据单号</th>
				<th>创建者</th>
				<th>创建时间</th>
				<th>更新时间</th>
				--%> 
				<th>备注信息</th>
				<shiro:hasPermission name="field:fieldCustomerPos:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="fieldCustomerPos">
			<tr>
				<td><a href="${ctx}/field/fieldCustomerPos/list?office.id=${fieldCustomerPos.office.id}&customerCode.code=${fieldCustomerPos.customerCode.code}&customerCode.name=${fieldCustomerPos.customerCode.name}">
					${fieldCustomerPos.customerCode.name}
					</a>
				</td>
				<td><a href="${ctx}/field/fieldCustomerPos/list?office.id=${fieldCustomerPos.office.id}&manageUser.id=${fieldCustomerPos.manageUser.id}&manageUser.name=${fieldCustomerPos.manageUser.name}">
					${fieldCustomerPos.manageUser.name}
				</a></td>
				<td>
					<a href="${ctx}/field/fieldCustomerPos/form?id=${fieldCustomerPos.id}">
						${fieldCustomerPos.brcode}
					</a>
				</td>

				<td>
					${fieldCustomerPos.code}
				</td>
				<td>
					${fieldCustomerPos.pcode}
				</td> 
				<td>
					${fieldCustomerPos.sn}
				</td>
				<td>
					${fns:getDictLabel(fieldCustomerPos.version, 'field_version', '')}
				</td> 
				<td>
					${fieldCustomerPos.rate}
				</td> 
				<td>
					${fns:getDictLabel(fieldCustomerPos.models, 'field_models', '')}
				</td>
				<td>
					${fns:getDictLabel(fieldCustomerPos.source, 'field_source', '')}
				</td>
			<%-- 
				<td>
					${fieldCustomerPos.manager}
				</td>
				<td>
					${fieldCustomerPos.managerphone}
				</td>
				<td>
					${fieldCustomerPos.deposit}
				</td>
					<td>
					${fieldCustomerPos.receipt}
				</td>
				<td>
					${fieldCustomerPos.createBy.id}
				</td>
				<td>
					<fmt:formatDate value="${fieldCustomerPos.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
				<td>
					<fmt:formatDate value="${fieldCustomerPos.updateDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
			--%> 
 
				<td>
					${fieldCustomerPos.remarks}
				</td>
				<shiro:hasPermission name="field:fieldCustomerPos:edit"><td>
					<h5><a href="${ctx}/field/fieldDailyTask/form?pos.id=${fieldCustomerPos.id}&user.id=${fieldCustomerPos.manageUser.id}&user.name=${fieldCustomerPos.manageUser.name}&customer.name=${fieldCustomerPos.customerCode.name}&phone=${fieldCustomerPos.phone}&contact=${fieldCustomerPos.contact }&customer.id=${fieldCustomerPos.customerCode.id}&address=${fieldCustomerPos.address}&remarks=商家【${fieldCustomerPos.customerCode.name}】自定义编码【${fieldCustomerPos.code}】、机器码【${fieldCustomerPos.pcode}】、工行资源编码【${fieldCustomerPos.brcode}】">发布任务</a></h5>
    				<a href="${ctx}/field/fieldCustomerPos/form?id=${fieldCustomerPos.id}">修改</a>
					<a href="${ctx}/field/fieldCustomerPos/delete?id=${fieldCustomerPos.id}" onclick="return confirmx('确认要删除该商家POS机管理维护吗？', this.href)">删除</a>
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>